<?php

namespace App\Policies;

use App\Models\User;
use App\Models\GoldRecord;
use Illuminate\Auth\Access\HandlesAuthorization;

class GoldRecordPolicy
{
    use HandlesAuthorization;
    
    public function own(User $user, GoldRecord $record)
    {
	    return $user->id === $record->user_id;
    }
}
